package com.lvt.design.pattern.module.auth.apirequest;

/**
 * @author LT
 * @date 2023年02月21日 23:05
 */
public class ApiRequest {

    private String baseUrl;
    private String appID;
    private long timeStamp;
    private String token;

    public ApiRequest(String fulUrl) {
        this.baseUrl = baseUrl;
    }

    public ApiRequest(String baseUrl, String appID, long timeStamp, String token) {
        this.baseUrl = baseUrl;
        this.appID = appID;
        this.timeStamp = timeStamp;
        this.token = token;
    }

    public static ApiRequest buildFromUrl(String url) {
        return new ApiRequest("url", "test", System.currentTimeMillis(), "ehtGA89eVSfGA/g8mZWQt2qOe0I=");
    }

    public String getBaseUrl() {
        return baseUrl;
    }

    public String getAppID() {
        return appID;
    }

    public long getTimeStamp() {
        return timeStamp;
    }

    public String getToken() {
        return token;
    }
}
